import instance from "@/utils/http";
//添加购物车
export const addCartList = (skuId,count) => {
    return instance.post('/member/cart',{
        skuId,
        count
    })
}
//获取购物车列表
export const getCartList = () => {
    return instance.get('/member/cart')
}

//删除购物车列表
export const delCartList = (ids) => {
    return instance({
        url:"/member/cart",
        method:'DELETE',
        data:{
            ids
        }
    })
}

//合并购物车
export const concatCartList = (data) => {
    return instance.post('/member/cart/merge',data)
}